package com.ibigcat.module.mdm.controller.admin.file.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.ibigcat.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.ibigcat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 文件分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class FilePageReqVO extends PageParam {

    @Schema(description = "来源id", example = "25385")
    private Long sourceId;

    @Schema(description = "来源类型", example = "2")
    private String sourceType;

    @Schema(description = "文件id", example = "26582")
    private Long fileId;

    @Schema(description = "文件名称", example = "赵六")
    private String fileName;

    @Schema(description = "OSS文件存储路径")
    private String filePath;

    @Schema(description = "文件后缀")
    private String fileFormat;

    @Schema(description = "文件大小")
    private String fileSize;

    @Schema(description = "上传人名称", example = "赵六")
    private String uploaderName;

    @Schema(description = "上传时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] uploadTime;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}